﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Enterprise.Management.Models;
using System.ComponentModel.DataAnnotations;

namespace Enterprise.Management.ViewModels
{
    public class DependencyBranchViewModel : ViewModelBase
    {
        public DP_Local_Info dp_local_info { get; set; }
    }

    public class EditDependencyBranchViewModel
    {
        [Required(ErrorMessage = "必填项")]
        [Range(0.0, 1000000.0, ErrorMessage = "数值无效")]
        [Display(Name = "网点家数")]
        public int LclInf_BranchNum { get; set; }

        [Required(ErrorMessage = "必填项")]
        [Range(0.0, 1000000000000.0, ErrorMessage = "数值无效")]
        [Display(Name = "交易总量(A股)万元")]
        public double LclInf_JiaoyiZongliang { get; set; }

        [Required(ErrorMessage = "必填项")]
        [Range(0.0, 1000000000000.0, ErrorMessage = "数值无效")]
        [Display(Name = "部均交易量(A股)万元")]
        public double LclInf_BujunJiaoyiliang { get; set; }

        [Required(ErrorMessage = "必填项")]
        [Range(0.0, 100.0, ErrorMessage = "数值无效")]
        [Display(Name = "平均佣金率(%)")]
        public double LclInf_Yongjinlv { get; set; }

        [Required(ErrorMessage = "必填项")]
        [Range(0.0, 100.0, ErrorMessage = "数值无效")]
        [Display(Name = "市场占比(%)")]
        public double LclInf_ShichangZhanbi { get; set; }
    }
}